﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../CSS/style2.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.pager.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.showModalDialog.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: "SelectEmp.asmx/SelectUsers",
                type: "post",
                data:JSON.stringify({ }),
                dataType: "json",
                contentType: "application/json",
                success: function (obj) {
                    var sel1 = $("#sel1");
                    for (var i = 0; i < obj.d.length; i++) {
                        sel1.append('<option value="'+obj.d[i].UserID+'">'+obj.d[i].UserName+'</option>');
                    }
                }, error: function (xmlhttp) {
                    alert("错误：" + xmlhttp.responseText);
                }
            });
            //双击
            $("#sel1").dblclick(function(){
                window.returnValue=$(this).val();
                window.close();
            });

        });

    </script>
</head>
<body>
    <table class="tableEdit">
        <thead>
            <tr>
                <td>
                    指派人(客户经理)选择<span style="color:Red;font-weight:normal">(选择双击确定)</span>
                </td>
            </tr>
        </thead>
        <tr>
            <td>
                <select size="10" id="sel1" style="width: 100px;">
                   
                </select>
            </td>
        </tr>
    </table>
</body>
</html>
